<template>
<div class="my">
  <div class="home_img">
    <img src="../../assets/image/my/my (5).png" alt="" class="home_img" />
  </div>
  <div class="home_box4">
    <div class="box_4">
      <div class="left">
        <router-link to="/index/my/a" tag="div" class="rout">
          <div>
            <img src="../../assets/image/my/my (4).png" alt="" class="my_img" />
          </div>
          <div>基础信息</div>
        </router-link>
        <router-link to="/index/my/b" tag="div" class="rout">
          <div>
            <img src="../../assets/image/my/my (1).png" alt="" class="my_img" />
          </div>
          <div>订单管理</div>
        </router-link>
        <el-col :span="12" class="rout1">
          <el-menu default-active="1-1" @open="handleOpen" @close="handleClose">
            <el-submenu index="1">
              <template slot="title">
                <img src="../../assets/image/my/my (2).png" alt="" class="my_img" />
                <span class="span">库存管理</span>
              </template>
              <el-menu-item-group>
                <el-menu-item index="1-1">
                  <router-link to="/index/my/c" tag="li">库存统计</router-link>
                </el-menu-item>
                <el-menu-item index="1-2">
                  <router-link to="/index/my/outbound" tag="li">图书出库</router-link>
                </el-menu-item>
              </el-menu-item-group>
            </el-submenu>
          </el-menu>
        </el-col>
      </div>
      <div class="right">
        <router-view></router-view>
      </div>
    </div>
  </div>
   <Bottom/>
</div>
</template>

<script>
import Bottom from '../../components/Bottom'
export default {
  components:{
    Bottom
  },
  data() {
    return {
      flag: false
    }
  },
  methods: {
    clickBlock() {
      this.flag = true
    },
    handleOpen() {},
    handleClose() {}
  }
}
</script>

<style lang="scss" scoped>
/teep/.el-submenu__title {
  width: 250px;
}

.my {
  width: 100%;
  .home_img {
    width: 100%;
    height: 105px;
  }

  .home_box4 {
    width: 100%;
    .box_4 {
      width: 1310px;
      height: 100%;
      margin: 0 auto;
      background: #f2f2f2;
      display: flex;
      .left {
        width: 247px;
        height: 617px;
        background: #ffffff;
        margin: 21px 26px 0 36px;

        .rout {
          width: 250px;
          height: 59px;
          display: flex;
          align-items: center;
          justify-content: center;
          color: #040203;
          text-align: center;
        }

        .rout1 {
          width: 100%;
          text-align: center;
          display: flex;
          align-items: center;
          justify-content: center;
          color: #040203;
          text-align: center;
          overflow: hidden;

          span {
            display: inline-block;
            padding: 0 12px;
            font-size: 14px;
          }
        }

        .my_img {
          width: 37px;
          height: 37px;
          margin-right: 14px;
        }
      }

      .right {
        width: 965px;
        height: 100%;
        margin-top: 21px;
      }
    }
  }
}

.router-link-active {
  width: 100%;
  height: 59px;
  background: #f3e3e4;
  color: #040203;
}

li {
  padding-left: none;
}

/deep/ .el-menu {
  width: 100%;
}

/deep/ .el-menu-item {
  width: 100%;
}

/deep/ .el-submenu {
  width: 100%;
}
</style>
